class ToolLogo < ActiveRecord::Base
  acts_as_fleximage :image_directory => 'public/upload/tool_logo'
  use_creation_date_based_directories true
  image_storage_format :jpg
  require_image true
  missing_image_message  '必须指定'
  invalid_image_message '不是一个有效的图片文件'
  output_image_jpg_quality  100
  preprocess_image do |image|
   image.resize '640x480'
  end

  belongs_to :user
  belongs_to :tool
end
